<?php
declare(strict_types=1);

namespace ImiApp\ApiServer\Backend\Validate;

use Phpben\Imi\Validate\Validate;

class Com1Validate extends Validate
{
    protected $rule = [
		'id' => 'require|integer',
		'changeid' => 'require|integer',
		'pid' => 'require|integer',
		'ids' => 'require',
		'changepid' => '',
		'name' => 'require',
    ];

    protected $message = [
    ];

    protected $scene = [
        'create' => ['name', ],
        'update' => ['id', 'name', ],
        'sort' => ['ids','pid','changeid','changepid']        
    ];
}
